package cn.changein.framework;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * SpringBoot方式启动类
 */
@SpringBootApplication(scanBasePackages = {"cn.changein.framework"})
//@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX, pattern = "cn.changein.framework.i18n.*")})
public class WebApplication {

    private final static Logger logger = LoggerFactory.getLogger(WebApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
        logger.info(WebApplication.class.getSimpleName() + " is success!");
    }

}
